package com.example.day09;

import com.example.day09.net.CallBack;
import com.example.day09.net.View;

import java.util.List;

public class Persenter implements CallBack {
    private View mView;
    private Model model;

    public Persenter(View mView) {
        this.mView = mView;
        model=new Model();
    }

    @Override
    public void showbean(List<Bean.DataBean.DatasBean> datasBeans) {
        mView.bean(datasBeans);

    }

    @Override
    public void shoebanner(List<BannerBean.DataBean> bannerlist) {
        mView.showbanner(bannerlist);
    }
    public void getData(){
        model.getData(this);
        model.getBanner(this);
    }
}
